using System;
using System.Collections.Generic;

namespace Core
{
	public class ApplicationEvent
	{
		public string Text {get;private set;}
		public string ObjectValue {get;private set;}
		public string DateStamp {get;private set;}
		public List<Context> Contexts {get; private set;}	
	
		public ApplicationEvent (string text, string objectValue, string dateStamp, List<Context> contexts)
		{
			this.Text= text;
			this.ObjectValue=objectValue;
	        this.DateStamp=dateStamp;
			this.Contexts=contexts;		
		}
		
		public void AddContext(Context context)
		{
			this.Contexts.Add(context);
		}
	}
	
	public class Context
	{
		public Context(string key, string contextValue)
		{
			this.Key=key;
			this.ContextValue=contextValue;
		}
		
		public string Key {get; private set;}
		public string ContextValue {get; private set;}
	}
}

